import request from '@/utils/request'

export const getComplaint = (page, size) => {
  return request({
    url: '/business/complaint/all',
    method: 'GET',
    params: {
      page, size
    }
  })
}

export const updateComplaint = (id) => {
  return request({
    url: '/business/complaint/update/' + id,
    method: 'POST',
  })
}
